import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/dark/css-vars.css';
import './css/style.css';
import './css/index.css';
import GTable  from './components/table.vue';
import Main from './components/Main.vue';
import pina from './store/store.js';
import GlobalComponents from './components'
import router from './router';
import App from './App.vue';
(async () => {
  const app = createApp(App);
  app.use(ElementPlus, {
    locale: zhCn,
  });
  app.use(GlobalComponents)
  app.use(pina);
  app.use(router);
  await router.isReady();
  app.mount('#app');
})();
